home *** CD-ROM | disk | FTP | other *** search
- #include <dos.h>
- #include <bios.h>
- #include <stdio.h>
- #include <signal.h>
- #include <stdlib.h>
- #include <process.h>
-
- extern disable_break();
- extern enable_break();
-
- main()
- {
- int end_of_job = 0;
- int c = 0;
-
- printf("\nStart of job...");
-
- DISABLE_BREAK();
-
- while (! end_of_job)
- {
- if (!kbhit())
- {
- c = getch();
- printf(".");
- if (c == 'Z')
- end_of_job = 1;
- }
- }
-
- ENABLE_BREAK();
-
- printf("\nEnd of execution.\n");
- }
-